package com.sgb.kjwl.view.ui.adapter.material;

import android.content.Context;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.sgb.kjwl.BR;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.businessmanagement.MemberEntity;
import com.sgb.kjwl.model.entity.supplier3.DictEntity3;
import com.sgb.kjwl.view.widget.DictWindow6;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * @author PC
 */
public class GoodsCompanyAdapter extends BaseRecycleAdapter<MemberEntity> {

    private TextView tv_name;

    public GoodsCompanyAdapter(Context context, List<MemberEntity> datas) {
        super(context, R.layout.item_goods_company, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, final MemberEntity entity) {
        holder.setBinding(BR.viewModel, entity);
        tv_name = holder.getItem().findViewById(R.id.tv_name);
        tv_name.setText(entity.getCompanyName());
    }

}
